<template>
  <div class="">
    <div class="breadcrumb flex-center">
      <p class="title">我的组织</p>
    </div>
    <div class="box">
      <div style="background-color: #f9f9f9" class="pd-20">
        <p>当前购买规格:300人</p>
        <p class="mgt-15">使用期限：1年</p>
        <p class="mgt-15">到期时间：2022年3月1日</p>
      </div>
      <p class="f16 mgt-25">使用成员统计（单位：个）</p>
      <div class="item">
        <el-image class="cover mgr-20" :src="url1" fit="cover"></el-image>
        <div class="flex-column center">
          <p class="f18 bold">4</p>
          <p>学校</p>
        </div>
      </div>
      <div class="item">
        <el-image class="cover mgr-20" :src="url2" fit="cover"></el-image>
        <div class="flex-column center">
          <p class="f18 bold">255</p>
          <p>用户数</p>
        </div>
      </div>

      <p class="f16 mgt-25">使用数据统计</p>
      <div class="item">
        <div class="flex-column center">
          <p class="f18 bold">420</p>
          <p>学习课程数（个）</p>
        </div>
      </div>
      <div class="item">
        <div class="flex-column center">
          <p class="f18 bold">8888</p>
          <p>学习时长（分钟）</p>
        </div>
      </div>
      <div class="item">
        <div class="flex-column center">
          <p class="f18 bold">98</p>
          <p>下载课件数（个）</p>
        </div>
      </div>

      <p class="f16 mgt-25">使用明细</p>
      <div class="table">
        <div class="row">
          <p>学校</p>
          <p>用户数</p>
          <p>学习课程数</p>
          <p>学习时长</p>
          <p>下载课件数</p>
        </div>
        <div v-for="(item, index) in tableList" :key="index" class="row">
          <p>{{ item.school }}</p>
          <p>{{ item.num1 }}</p>
          <p>{{ item.num2 }}</p>
          <p>{{ item.num3 }}</p>
          <p>{{ item.num4 }}</p>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "organization",
  data() {
    return {
      url1: require("../../assets/img/学校@2x.png"),
      url2: require("../../assets/img/课件@2x.png"),
      tableList: [
        {
          school: "成都市华阳中学",
          num1: 255,
          num2: 5,
          num3: 55,
          num4: 81,
        },
        {
          school: "天府新区实验小学",
          num1: 255,
          num2: 5,
          num3: 55,
          num4: 81,
        },
        {
          school: "树德中学",
          num1: 255,
          num2: 5,
          num3: 55,
          num4: 81,
        },
      ],
    };
  },
  methods: {},
};
</script>

<style lang="less" scoped>
@import "../../assets/css/variable.less";
.cover {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}
.box {
  box-shadow: 1px 2px 33px 5px rgba(204, 204, 204, 0.12);
  border-radius: 7px 7px 7px 7px;
  padding: 30px;
}
.item {
  width: 180px;
  height: 90px;
  box-shadow: 1px 2px 33px 5px rgba(204, 204, 204, 0.12);
  display: inline-flex;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  margin-right: 20px;
  margin-top: 10px;
  justify-content: center;
}
.table {
  .row {
    height: 30px;
    line-height: 30px;
    border-bottom: 1px solid #d8d8d8;
    display: flex;
    &:first-child {
      background: #ececec;
      border-top: 1px solid #d8d8d8;
    }
    & > p {
      border-left: 1px solid #d8d8d8;

      flex: 1;
      text-align: center;
      &:last-child {
        border-right: 1px solid #d8d8d8;
      }
    }
  }
}
</style>
